package com.tyk.bookstore.front.comment.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author tyk
 * @description 回复
 */
@Schema(name = "Reply", description = "回复")
@TableName("reply")
@Data
public class ReplyDo implements Serializable {

    public static final Long TOP_ID = 0L;

    @Serial
    private static final long serialVersionUID = 1;

    @Schema(description = "ID")
    @TableId("id")
    private Long id;

    @Schema(description = "会员ID")
    @TableField("member_id")
    private Long memberId;


    @Schema(description = "父级评论者ID")
    @TableField("at_member_id")
    private Long atMemberId;

    @Schema(description = "评论ID")
    @TableField("comment_id")
    private Long commentId;

    @Schema(description = "父级ID")
    @TableField("parent_id")
    private Long parentId;

    @Schema(description = "评论内容")
    @TableField("content")
    private String content;

    @Schema(description = "评论时间")
    @TableField("create_time")
    private LocalDateTime createTime;

}
